package com.atguigu.common.valid.annotation;

import com.atguigu.common.valid.validator.ListIntegerValueConstraintValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author: Mr.ling
 * @data: 2022/7/6
 * @apiNote
 */
@Documented
@Constraint(
        validatedBy = {ListIntegerValueConstraintValidator.class}
)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER, ElementType.TYPE_USE})
@Retention(RetentionPolicy.RUNTIME)
public @interface ListIntegerValue {

        String message() default "{com.atguigu.common.valid.annotation.ListIntegerValue.message}";

        Class<?>[] groups() default {};

        Class<? extends Payload>[] payload() default {};


    int[] vals() default { };
}
